(function(app){
	app
		.controller("messageCtrl",["$scope","myFactory",'$http','$state','$stateParams','$window','$location','$timeout',function($scope,myFactory,$http,$state,$stateParams,$window,$location,$timeout){
			
			var fromPage = $stateParams.fromPage;//获取传递过来的条件查询参数
			$scope.message = $stateParams.message;//获取传递过来的条件查询参数
			console.log("fromPage:"+fromPage);
			
			$scope.goBack = function () {
				var data = {
					sessionTimeOut : "No", //"Yes" Session超时 "No":系统正常的返回
					exitSysPage : fromPage //"1" 信易通首页  "2":“我”页面
				};
				setTimeout(function() {
					cordova.sino.entryLocalSys(function(){}, data);
				}, 350);
			}
			
		}])
})(app)